package collection.mylist;

public class MyLinkedListTest {
    public static void main(String[] args) {
        MyLinkedList<String> list = new MyLinkedList<>();
        list.add(0,"zhangsan");
        list.add(1,"lisi");
        list.add(2,"wangwu");
        list.add(3,"zhaoliu");
        list.add(4,"qianqi");
        System.out.println("list.size() = " + list.size());
        System.out.println("list = " + list);
        System.out.println(list.set(1, "牛马"));
        System.out.println("list = " + list);
        System.out.println("list.get(1) = " + list.get(1));
        System.out.println("list.remove(1) = " + list.remove(1));
        System.out.println("list = " + list);

    }
}
